import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart'; //存储本地单例控件
import 'package:dio/dio.dart'; //网络请求视图
import 'package:flutter_swiper/flutter_swiper.dart'; //滚动视图
import 'package:async/async.dart'; //异步网络请求
import 'StoreDataClass.dart'; //存储数据元素
import 'package:flutter_app/LoginView.dart';
import 'mainTabbarController.dart';

void main() {
  runApp(MyApp());
}
class MyApp extends StatelessWidget {
  Future<String> uuid = shareData.get("uuid");
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material Components',
      //home: LoginPage(),
      routes:  <String, WidgetBuilder>{//1
        '/first': (BuildContext context) => LoginPage(),
        '/second': (BuildContext context) => ShowManin(),
      },
      initialRoute:(1==0?'/first':'/second'),//通过这个方法手动去设置这个标志
    );
  }
}